//
//  CXHAdapterNativeAdViewDelegate.h
//  CXHAdSDK
//
//  Created by 陈坤 on 2022/5/4.
//

#ifndef CXHAdapterNativeAdViewDelegate_h
#define CXHAdapterNativeAdViewDelegate_h

#import "CXHAdapterCommonDefine.h"

NS_ASSUME_NONNULL_BEGIN

@class CXHAdapterNativeAdData;

@protocol CXHAdapterNativeAdViewDelegate <NSObject>
/**
 平台类型
 */
- (nullable CXHAdapterPlatform)cxh_platform;

/**
 注册广告视图
 */
- (void)cxh_registViews:(NSArray<UIView *> *_Nullable)clickViews;

/**
 取消注册
 */
- (void)cxh_unRegistView;

/**
 广告关闭事件，手动调用
 */
- (void)cxh_close;


- (nullable CXHAdapterNativeAdData *)cxh_nativeAdData;

/**
 获取视频视图
 */
- (nullable UIView *)cxh_mediaViewForWidth:(CGFloat)width;

/**
 平台logo视图
 */
- (nullable UIView *)cxh_logoView;

/**
 加载图片
 */
- (void)cxh_loadImage:(UIImageView *)imageView placeholder:(UIImage *_Nullable)placeholder;

/**
 重新设置rootViewController
 */
- (void)cxh_setRootViewController:(UIViewController *)rootViewController;

@end

NS_ASSUME_NONNULL_END

#endif /* CXHAdapterNativeAdViewDelegate_h */
